package com.findme.fecedetection.bean;

/**
 * Created by dab on 2017/11/12 0012 13:59
 */

public class ResultData<T> {

    /**
     * errorCode : 0
     * message : 成功
     * data : {"list":[{"id":3,"category":"2","gender":"1","color":"1","size":"1","type":"1","cover":"192.168.1.61:8080/20171024/3b5e2c250bfa4f79b93b0f6ce1e6289f.jpeg","location":"四川省成都市","createTime":1509612070000},{"id":4,"category":"2","gender":"1","color":"1","size":"1","type":"1","cover":null,"location":"四川省成都市","createTime":1509612154000},{"id":5,"category":"2","gender":"1","color":"1","size":"1","type":"1","cover":"192.168.1.61:8080/20171024/3b5e2c250bfa4f79b93b0f6ce1e6289f.jpeg","location":"四川省成都市","createTime":1509689627000}]}
     */

    private String errorCode;
    private String message;
    private T data;


    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "ResultData{" +
                "errorCode='" + errorCode + '\'' +
                ", message='" + message + '\'' +
                ", data=" + data +
                '}';
    }
}
